import React from 'react'

import NavHeader from '../../components/NavHeader/index';
import './index.scss'


export default class MyMap extends React.Component {
    componentDidMount() {
        let map = new window.BMap.Map('container')
        let point = new window.BMap.Point(116.404, 39.915);
        map.centerAndZoom(point, 15);
    }
    render() {
        return <div className="map">
            {/* 头部navbar */}
            <NavHeader>地图找房</NavHeader>
            <div id="container"></div>
        </div>
    }
}